<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>flex 2</title>
		<style>
		.fa{
			width: 600px;
			height: 600px;
			background-color:pink;
			display:flex;
		}
		.child{
			width: 150px;
			height: 150px;
			background-color: #008000;
			margin: auto auto ;
		}
		</style>
	</head>
	<body>
		<div class="fa">
			<div class="child">水平垂直居中2</div>
		</div>
	</body>
</html>
